<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:form="http://java.sun.com/jsf/composite/components/form"
	template="/templates/include/securedmain.xhtml">

	<ui:define name="content">

		<h:form id="form">
			<p:growl id="growl" showDetail="true" sticky="false" />
			<p:panelGrid id="grid" columns="2" rowClasses="center-td">
				<f:facet name="header">
					<h:outputText value="#{msg['view.userview.form.head']}" />
				</f:facet>
				<h:outputText value="#{msg['properties.user.firstname']}:" />
				<h:outputText value="#{viewUserBean.selectedItem.firstName}"
					id="firstname" />

				<h:outputText value="#{msg['properties.user.surname']}:" />
				<h:outputText value="#{viewUserBean.selectedItem.surname}"
					id="surname" />

				<h:outputText value="#{msg['properties.user.nickname']}:" />
				<h:outputText value="#{viewUserBean.selectedItem.nickname}"
					id="nickname" />

				<h:outputText value="#{msg['properties.user.email']}:" />
				<h:outputText value="#{viewUserBean.selectedItem.email}" id="email" />

				<h:outputText value="#{msg['properties.user.role']}:" />
				<h:outputText value="#{viewUserBean.selectedItem.role}" id="role" />

				<h:outputText value="#{msg['properties.user.implementor']}:" />
				<h:outputText value="#{viewUserBean.selectedItem.implementor}"
					id="implementor" />

				<h:outputText value="#{msg['properties.user.icalurl']}:" />
				<h:outputText
					value="#{request.contextPath}/userical.ics?id=#{viewUserBean.selectedItem.id}"
					id="icalUrlValue" />

				<f:facet name="footer">
					<p:button id="viewButton" value="#{msg['view.actions.calendar']}"
						outcome="/secured/usercalendar" icon="ui-icon-calendar"
						update="@form" ajax="false">
						<f:param name="id" value="#{viewUserBean.selectedItem.id}" />
					</p:button>
				</f:facet>
			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
